#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>

#include <OgreRoot.h>

#include <ScriptManager.h>

#include "ui_MainWindow.h"
#include "OgreWidget.h"

using Ogre::Root;
using Ogre::RenderSystem;
using Ogre::LogManager;
using ScriptPlug::IScriptPlugin;
using ScriptPlug::ScriptManager;

const Ogre::String rsysName = "Direct3D9 Rendering Subsystem";

class MainWindow : public QMainWindow, public Ui::MainWindowClass
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0, Qt::WFlags flags = 0);
    ~MainWindow();

protected:
    Root* root;
    ScriptManager* scriptManager;
    OgreWidget* ogreWidget;
    IScriptPlugin* scriptPlugin;

    bool SetupOgre();
    void LoadResources();
    void LocateResources();
    
private slots:
    void on_runScript_clicked();
};

#endif // MAINWINDOW_H
